<?php

// +----------------------------------------------------------------------
// | Admin Plugin for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2024 ThinkAdmin [ thinkadmin.top ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-admin
// | github 代码仓库：https://github.com/zoujingli/think-plugs-admin
// +----------------------------------------------------------------------


use think\facade\Route;
// 格式：Route::get('路由路径', '模块/控制器/方法');
Route::get('nav_list/:cid','index/index/nav_list');
Route::get('sendTest','index/index/sendTest');//发邮件
Route::get('article/:id','index/index/article');
Route::post('login','index/index/login');
Route::post('reg','index/index/reg');
Route::post('logout','index/index/logout');
Route::post('share','index/index/share');
Route::get('qq_login','index/index/qq_login');//qq登录
Route::get('callback','index/index/qq_callback');//qq回调

Route::post('like','index/index/like');//点赞
Route::post('comment','index/index/comment');//评论
Route::post('visit','index/index/visit');//访问
Route::post('follow','index/index/follow');//关注
Route::post('delfollow','index/index/delfollow');//取消关注

Route::get('love','index/index/love');//三行情诗
Route::post('love_like','index/index/loveLike');//三行情诗点赞


//[:id] 可选参数  :id必填参数
Route::get('home/[:id]','index/member/home')->middleware(\app\index\middleware\AuthCheck::class);//主页
Route::get('member_center','index/member/memberCenter')->middleware(\app\index\middleware\AuthCheck::class);//文章
Route::get('articleForm/[:id]','index/member/articleForm')->middleware(\app\index\middleware\AuthCheck::class);//旧版

Route::post('articleSave','index/member/articleSave')->middleware(\app\index\middleware\AuthCheck::class);//提交文章

Route::post('articleDel','index/member/articleDel')->middleware(\app\index\middleware\AuthCheck::class);//删除

//三行情书
Route::get('loveList','index/member/loveList')->middleware(\app\index\middleware\AuthCheck::class);//列表
Route::get('loveForm/[:id]','index/member/loveForm')->middleware(\app\index\middleware\AuthCheck::class);//编辑新增
Route::post('loveSave','index/member/loveSave')->middleware(\app\index\middleware\AuthCheck::class);//提交
Route::post('loveDel','index/member/loveDel')->middleware(\app\index\middleware\AuthCheck::class);//删除





Route::get('setting','index/member/setting')->middleware(\app\index\middleware\AuthCheck::class);//设置
Route::post('doSetting','index/member/doSetting')->middleware(\app\index\middleware\AuthCheck::class);//提交设置








Route::get('ok','Index/ok');//
Route::get('job','Index/testAsyncTask');//
Route::get('reg/:code','Index/reg');//